﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Forest.Core.Infrastructure.DependencyManagement;
using Autofac;
using Autofac.Core;
using Forest.Core.Infrastructure;

namespace Forest.Cat.Web.Infrastructure {
    public class DependencyRegistrar : IDependencyRegistrar {
        public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder) {
            //we cache presentation models between requests
            //builder.RegisterType<CatalogController>()
            //    .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static"));
            //builder.RegisterType<TopicController>()
            //    .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static"));
        }

        public int Order {
            get { return 2; }
        }
    }
}